package com.nlx.notes.module.bean.dto.flow;

import com.nlx.notes.module.bean.BaseDTO;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@Getter
@Setter
@ToString
public class FlowEditDTO extends BaseDTO {

    private Long flowId;

    /**
     * 流水类型 income-收入  expend-支出
     */
    private String transactionType;


    /**
     * 金额
     */
    @NotEmpty(message = "请填写金额")
    private String amount;

    /**
     * 流水类型
     */
    @NotNull(message = "请选择流水类型")
    private Long categoryId;

    /**
     * 账号id
     */
    private Long accountId;

    /**
     * 流水日期
     */
    @NotNull(message = "请选择日期")
    private LocalDate transactionDate;

    /**
     * 备注
     */
    private String description;

    private Long userId;

}
